<div class="view-header">
    <div class="view-header-left">
        <div class="view-header-item color-open" ng-click="user_add_open = true" ng-show="!user_add_open" title="添加用户">
            <i class="fa fa-plus"></i> 添加用户
        </div>
        <div class="view-header-item no-widen" ng-click="syn_users_to_rbac()" ng-show="!user_add_open" title="同步用户到权限">
            <i class="fa fa-refresh"></i>
        </div>
        <div class="view-header-item color-submit no-widen" ng-click="user_revise_submit()" ng-show="!user_add_open" title="修改保存">
            <i class="fa fa-save"></i>
        </div>
        

        <div class="view-header-item color-close above-cover no-widen" ng-click="user_add_open = false" ng-show="user_add_open" title="关闭">
            <i class="fa fa-close"></i>
        </div>
        <div class="view-header-item color-check above-cover" ng-click="user_add_submit()" ng-show="user_add_open" title="提交">
            <i class="fa fa-check"></i> 确认提交
        </div>
        
    </div>
</div>
<div class="view-content">
    <div class="view-left">
        <div class="view-left-search">
            <input type="text" placeholder='Search' ng-model="forms.filter">
            <i class="fa fa-search"></i>
        </div>
        <div class="view-left-block">
            <user-inc ng-model='forms.data' user="forms.user" del="delete(item)" mode="forms.del"></user-inc>
        </div>
    </div>
    <div class="view-right">
        <div class="view-right-block">
            <div class="view-right-title">
                用户<span class='color-show'>{{user_revise_parm.name}}</span>信息修改
            </div>
            <!-- 修改用户 -->
            <div class="new-content">
                <div class="new-item">
                    <span>uid</span>
                    <input type="text" ng-model="user_revise_parm.uid" disabled>
                </div>
                <div class="new-item">
                    <span>用户</span>
                    <input type="text" ng-model="user_revise_parm.name">
                </div>
                <div class="new-item">
                    <span>密码</span>
                    <input type="text" ng-model="user_revise_parm.password">
                </div>
                <div class="new-item">
                    <span>电话</span>
                    <input type="text" ng-model="user_revise_parm.tel">
                </div>

                <div class="new-item">
                    <span>邮箱</span>
                    <input type="text" ng-model="user_revise_parm.email">
                </div>
                <div class="new-item">
                    <span>性别</span>
                    <select ng-model='user_revise_parm.sex'>
                        <option value="0">男</option>
                        <option value="1">女</option>
                    </select>
                </div>

                <div class="new-item">
                    <span>门店</span>
                    <select ng-model="user_revise_parm.shop_id"
                            ng-options="shop.id as shop.name for shop in shop_all_data">
                    </select>
                </div>
                <div class="new-item">
                    <span>可视门店</span>
                    <div class="picker all">
                        <select class="select-height" ng-model="view_shop_add" ng-options="item for item in all_view_shops_del" multiple></select>
                    </div>
                    <div class="controller">
                        <button style="width:40px" ng-click="add_view_shops()"> <span class="fa fa-angle-double-down"></span> </button>
                        <button style="width:40px" ng-click="remove_view_shops()"> <span class="fa fa-angle-double-up"></span> </button>
                    </div>
                    <div class="picker ok">
                        <select class="select-height" ng-model="view_shop_remove" ng-options="item for item in user_view_shops" multiple></select>
                    </div>
                </div>
                </div>
        </div>
    </div>
</div>

<!-- 新增用户 -->
<ng-include src="'/modules/admin/users/users.new.html'" ></ng-include>